-- GENERATED SPELL FOR [Palemane Poacher] --


function spell0_2951(pUnit, Event) --@Quick Shot,n/a--
pUnit:FullCastSpellOnTarget(1516,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_2951', 592, 1)
end

function spell1_2951(pUnit, Event) --@Shoot,n/a--
pUnit:FullCastSpellOnTarget(6660,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_2951', 672, 1)
end

function Sorts_2951(pUnit, Event)
local choix_sorts_2951 = math.random(0, 1)
if choix_sorts_2951 == 0 then
pUnit:RegisterEvent('spell0_2951', 1, 1)
end
if choix_sorts_2951 == 1 then
pUnit:RegisterEvent('spell1_2951', 1, 1)
end
end

function mob2951_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_2951', math.random(1500, 3000), 1)
end

function mob2951_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob2951_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob2951_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(2951, 1, 'mob2951_Action')
RegisterUnitEvent(2951, 2, 'mob2951_Leave')
RegisterUnitEvent(2951, 3, 'mob2951_Kill')
RegisterUnitEvent(2951, 4, 'mob2951_Die')
